Given a frame, and a set of rectangles (represented just by height and width in the boxes array), you must find a way to fit all the rectangles inside the frame without overlapping. Just like QuickDraw standard rectangles, two adjacent rectangles could have the same right/left coordinate, so that they are touching but not overlapping. Similarly, rectangles may touch the edge of the frame. When you find a solution, you should return the topleft coordinates of each rectange. Rectangles may only be moved horrizontally or vertically, they may not be rotated.
Example
frame = (10, 10, 100, 100 )
box_count = 3
boxes = { (50, 90), (40, 40), (40, 50) }
return
toplefts = { (10, 10), (60, 10), (60, 50) }
*/
#include "Solution.h"
// Fill in your solution and then submit this folder
// Team Name: FILL IN YOUR TEAM NAME!
void PackBoxes(Rect *frame, UInt32 box_count, Point boxes[], Point toplefts[] )